package com.wxy.demo.interface_;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/8/4 10:05
 */
public class HelloDemo {

    public static void main(String[] args) {
        String[] arr = new String[1];
        HelloInterface hello = new HelloInterface() {
            @Override
            public void say() {
                System.out.println("hello, " + arr[0]);
            }
        };
        arr[0] = "张三";
        hello.say();
        arr[0] = "李四";
        hello.say();
    }
}
